package jp.sinya.custom_jstl;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.SkipPageException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;

/**
 * SimpleTagSupport 已经实现了SimpleTag接口
 * 还提供了get方法获取
 */
public class CustomTag4 extends SimpleTagSupport {
    @Override
    public void doTag() throws JspException, IOException {
       this.getJspContext().getOut().print("使用SkipPageException之后，这条文字后面的内容将不会执行");
        throw new SkipPageException();
    }
}
